var baseHref = window.location.href
var baseUrl = baseHref.substr(0, baseHref.indexOf('/html/'))
// alert(baseUrl)
require.config({
  baseUrl: baseUrl + '/script',
  paths: {
    'vue': './lib/vue',
    'cube': './lib/cube.min',
    'lodash': './lib/lodash.min',
    'api': './lib/api',
    'common': './common',
    'promise': './lib/promise',
    'swiper': './lib/swiper',
    'fastclick': './lib/fastclick',
    'velocity': './lib/velocity',
    'button': '../html/common/test/button',
    'env': './env',
    'config': './config',
    'vant': 'https://unpkg.com/vant/lib/vant.min',
    // 'loadCss':'../html/common/test/load_css'
    'toast': '../html/components/toast/index'
  },
  shim: {
    'swiper': {
      exports: 'Swiper'
    },
    'app': {
      deps: ['fastclick']
    }
    // 'vant': {
    //     deps:['vue'],
    //     exports: 'Vant'
    // }
  }
})
